<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Home </title>
</head>
<body>
    <%- include('head', {title:"首页"} )%>
    <div>
        <h2>HOme - Home - Home </h2>
        <h4> <%- msg %> </h4>
        <p>count --  <%- count %> </p>
        <h1> <%- word  %> </h1>
        <h2> 微信 == <%- wx %></h2>
        <div>
          <%=  flag ? '今天晚上看电影':'大左老师,我有一个同学要来学H5' %>
        </div>

        <div>
          <%- tag %>
        </div>

      <%  if(username){  %> 
          <div>
            <h2>欢迎你:  <%- username %></h2>
            <button>注销</button>
          </div>
    <%    }else{   %>
          <div>
            <h2>请登录</h2>
            <button onclick="location.href='/login'">登录</button>
            <button onclick="location.href='/register'">注册</button>
          </div>
      <%  }   %> 
        
      <%  list.forEach((item,index)=>{ %>
           <h3> <%- item %>  -- <%- index %>  </h3>
      <%  })  %> 
        


    </div>

    <%-  include foot %>
</body>
</html>